<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>学科管理员</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
<h1>导师信息</h1>
<table>
    <thead>
    <tr>
        <th>导师ID</th>
        <th>导师姓名</th>
        <th>研究方向</th>
        <th>第一志愿</th>
        <th>第二志愿</th>
        <th>第三志愿</th>
        <th>招生指标</th>
        <th>已招生数</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="mentor" items="${mentors}">
        <tr>
            <td>${mentor.mentorId}</td>
            <td>${mentor.mentorName}</td>
            <td>${mentor.researchDirections}</td>
            <td>${mentor.firstPreferenceCount}</td>
            <td>${mentor.secondPreferenceCount}</td>
            <td>${mentor.thirdPreferenceCount}</td>
            <td>${mentor.quota}</td>
            <td>${mentor.admissionConfirmed}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>

